package com.sihan.framework.etm.entity.business;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.framework.mybatis.annotation.AutoGenerator;
import com.framework.mybatis.enums.IdType;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Table(name="jdx_etm_tool_borrow_return_record")
public class ToolBorrowReturnRecord implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final Integer TYPE_BORROW = 1;
	public static final Integer TYPE_RETURN = 2;
	
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	@AutoGenerator(idType = IdType.UUID32)
	private String id;
	//工器具id
	private String toolId;
	//柜子id
	private String deviceId;
	
	private Date createTime;
	//操作类型（1：领取，2：归还）
	private Integer type;
	//操作人
	private String operatorUserId;
	
	private String businessId;

}
